-- GENERATED SPELL FOR [Fordragon Gryphon Rider] --


function spell0_27521(pUnit, Event) --@Stormhammer,n/a--
pUnit:FullCastSpellOnTarget(49482,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27521', 589, 1)
end

function Sorts_27521(pUnit, Event)
local choix_sorts_27521 = math.random(0, 0)
if choix_sorts_27521 == 0 then
pUnit:RegisterEvent('spell0_27521', 1, 1)
end
end

function mob27521_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27521', math.random(1500, 3000), 1)
end

function mob27521_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27521_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27521_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27521, 1, 'mob27521_Action')
RegisterUnitEvent(27521, 2, 'mob27521_Leave')
RegisterUnitEvent(27521, 3, 'mob27521_Kill')
RegisterUnitEvent(27521, 4, 'mob27521_Die')
